(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <unistd.h>
size_t fread()
SYNOPSIS
void * buf
size_t size
size_t nblocks
FILE * stream

FUNCTION
Read an amount of bytes from a stream.

INPUTS
buf
The buffer to read the bytes into
size
Size of one block to read
nblocks
The number of blocks to read
stream
Read from this stream
RESULT
The number of blocks read. This may range from 0 when the stream contains no more blocks up to nblocks. In case of an error, 0 is returned.

NOTES
EXAMPLE
BUGS
SEE ALSO
fopen(), fwrite()
INTERNALS
HISTORY
02.04.1997 ldp
Add BPTR casts
17.01.1997 digulla
New functions: fopen(), fclose(), fgets(), ferror(), clearerr(), fread(), fwrite(), getchar(), gets()